package Shapes;

class Circle extends Shape{
    private double r;
    public Circle(String square,double r){
        this.square=square;//在子类中直接初始化父类的属性
        this.r=r;
    }
    public double calculateArea(){
        return 3.14*r*r;
    }
}
